package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wangsihan
 * @since 2021-10-08
 * 商家订单明细实体bean
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysOrderDetail extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("pk_odId")
    private Integer pkOdid;

    /**
     * 所属订单外键
     */
    @TableField("fk_orderId")
    private SysOrder order;

    /**
     * 商品外键
     */
    @TableField("fk_productId")
    private SysProduct product;

    /**
     * 购买数量
     */
    @TableField("od_number")
    private int number;
}
